home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir39
/
daybk0_2.zip
/
DAYBREAK.DOC
next >
Wrap
Text File
|
1993-02-28
|
8KB
|
216 lines
| |
DayBreak | DayBreak |
Day/date Command Line Substitution Utility | Day/date Command Line Substitution Utility |
Version 0.02 | Version 0.02 |
User Documentation | User Documentation |
| |
1993 | 1993 |
Dr J's Amazing Software | Dr J's Amazing Software |
| |
| |
DayBreak v0.02 -1-
COPYRIGHT & DISCLAIMER
DayBreak is copyright (C) 1993 by Dr J's Amazing Software.
DayBreak is distributed as ShareWare, you are expected to register the
program for a nominal fee if you find it useful and continue to use it
beyond a reasonable trial period. You are at liberty to distribute this
program.
Unregistered versions of DayBreak will not function after June 3, 1993
Registered users will recieve a personalised copy of DayBreak for their
own use as well as free upgrades to the program and periodic details of
other products from Dr J's Amazing Software. Registered versions may not be
distributed.
DayBreak is guaranteed to take up diskspace and nothing more. It has been
tested under MS-DOS 4.01, 5.00 and 4Dos 4.00 and found to function as
detailed in this document. Operation in other environments is at your own
risk.
The use of DayBreak is at your own risk, the author of DayBreak accepts
no responsibility for damages arising from the use of DayBreak either directly
or indirectly.
INTRODUCTION
DayBreak is designed to insert day, month and/or year
specific information into a DOS command line prior to execution. While
there are other programs that will do this, Ben Baker's DAYNBR being the
best known, to me they seemed limited in what they could accomplish.
Other programs just insert the Julian day-of-year number, but there are
times when you'd like to use the day of the week, the month or even the year
in various commands. DayBreak can handle all of these and will substitute
the desired data into a command line before executing it.
INSTALLATION
Unpack the distribution archive and place DayBreak.exe anywhere on your
DOS path. What could be simpler?
OPERATION
Correct commandline syntax is:
DayBreak </switch> command arg_1 arg_2 .... arg_n
Switch is indicated by '/' or '-'
The four valid switches are: /D-x /Dx /x /-x
/Dx: substitutes date of next day x, where x = day of week.
0 = Sunday, 1 = Monday .... 6 = Saturday.
e.g. /D3 will assume *next* Wednesday (unless today is that day)
/D-x: Substitutes date of previous day x, where x = day of week.
e.g. /D-0 will assume *last* Sunday (unless today is that day)
Note: -0 is not the same as 0 and gives you last Sunday. 0 assumes next
Sunday.
D must be between -6 and 6 inclusive.
/x: X is numeric value for number of days to move forward.
e.g. /4 uses date four days hence.
DayBreak v0.02 -2-
/-x: X is numeric value for number of days to move back.
e.g. /-1 uses yesterday's date.
X can be any valid integer value between -32,768 and 32,768, so -365 for
this day last year is valid.
DayBreak does not process wildcards, but leaves them for the actual program
being executed to handle. You should determine in advance how programs will
handle wildcards.
TOKENS
DayBreak uses tokens to substitute the desired information into any DOS
command line and is the heart of DayBreak's modus operandi. Tokens are
always enclosed between @ signs.
Supported tokens are:
@dd@ Day of month (01-31)
@d3@ Day (SUN, MON...SAT)
@dnr@ Day number in week (0 = Sunday, 1 = Monday...6 = Saturday)
@###@ Day of year. Jan 1 = 001.... Dec 31 = 365 (or 366)
@##@ Last two digits of day of year number
@#@ Last digit of day of year number
@mm@ Month (01-12)
@m3@ Month (JAN, FEB...DEC)
@yy@ Year (93)
@y4@ Year (1993)
Tokens must be in lower case and more than one token may be in any command
line. The same tokens may be used multiple times in the one command line.
EXAMPLES
DayBreak /-1 Arj m -r LOG@m3@@yy@ *.log
This will execute Arj and move all files *.log into an archive LOGMMMYY.ARJ.
I execute this on the first of each month to package all the log files on
my BBS, On February 1 it will create the archive LOGJAN93.ARJ. The -1
ensures the correct month and year. You could execute this on the last day
of the month without any switch.
DayBreak /d5 Arj a FLYNODE.J@##@ FLYNODE.@###@
This will archive the FlightNet nodelist for day ### into an archive
FLYNODE.J##. With the switch /D5 DayBreak assumes the date of the next
Friday, starting with the current day, if it is a Friday then today's date
is used. On Feb 5, 1993 the result will be to pack FLYNODE.036 into
FLYNODE.J36. DayBreak can then be called again to hatch this file to
FlightNet nodes.
SUPPORT
You can contact the author as follows:
via NetMail to either 3:800/857@fidonet or 48:152/102@flytenet
via snail mail
PO Box 598
Nairne
SA 5252
Australia
DayBreak v0.02 -3-
Or by logging onto:
The Cockpit BBS
(08) 388 0188
24 hours a day, up to v.32
DayBreak is always available for file request from 3:800/857@fidonet using
the magic filespec DAYBREAK.
REGISTRATION
Registration is required for DayBreak to function beyond June 3, 1993. The
low level of response to requests for registration of other Dr J products
has forced the decision to limit future releases in this manner.
Registration is AUS $10. Cheques should be made payable to J. Harding
Please fill in the registration form and mail it to
J Harding
PO Box 598
Nairne
SA 5252
AUSTRALIA
Your personalised copy of DayBreak will be sent to you as soon as your
registration is processed. It can be delivered by mail (Air Mail for
overseas orders) or crashed directly to any fidonet address.
====================== CUT HERE ======================================
DayBreak Registration Form
Name:_________________________________________________________________
Location or BBS Name:_________________________________________________
Postal Address:_______________________________
_______________________________
_______________________________
_______________________________
_______________________________
Please send me my copy of DayBreak in the following manner:
Mail on disk: [ ] Disk size [ ] 5.25" [ ] 3.5"
Via E-Mail to my FidoNet Address: [ ] Address_____________________
======================================================================